package com.nativetalk.service;

import com.nativetalk.bean.Bill;
import com.nativetalk.dao.BillDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BillService {

    @Resource
    private BillDao billDao;

    public BillDao getBillDao() {
        return billDao;
    }

    public void setBillDao(BillDao billDao) {
        this.billDao = billDao;
    }

    public int insert(Bill pojo) {
        return billDao.insert(pojo);
    }

    public int insertSelective(Bill pojo) {
        return billDao.insertSelective(pojo);
    }

    public int insertList(List<Bill> pojos) {
        return billDao.insertList(pojos);
    }

    public int update(Bill pojo) {
        return billDao.update(pojo);
    }

}
